//
//  YSTabBar.h
//  YiShi
//
//  Created by myMac on 15/7/3.
//  Copyright (c) 2015年 myMac. All rights reserved.
//

#import <UIKit/UIKit.h>

@class YSTabBar;

@protocol YSTabBarDelegate <NSObject>
@optional
- (void)YSTabBar:(YSTabBar *)tabBar didSelectedIndex:(NSInteger)selectedIndex;

@end

@interface YSTabBar : UIView
/*!
 @property
 @abstract 选择tabbar后的代理
 */
@property(nonatomic,assign) id<YSTabBarDelegate> delegate;
/*!
 @property
 @abstract tab数组
 */
@property(nonatomic,strong) NSArray* items;
/*!
 @property
 @abstract 当前选中位置
 */
@property(nonatomic,assign) NSInteger selectedIndex;
@end
